<%@ page language="java" errorPage="errorPage.jsp" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>内置对象练习</title>
</head>
<body>
<%
	//out对象
	out.println("out.println<br/>");
	out.write("out.write<br/>");
	
	//config对象
	out.print(config.getInitParameter("test") + "<br/>");
	out.print(config.getServletName() + "<br/>");
	
	//page对象——没用
	out.print("hashCode : " + page.hashCode() + "<br/>");
	out.print("class : " + page.getClass() + "<br/>");
	 
	//pageContext
	pageContext.setAttribute("test1", "test1value");
	pageContext.setAttribute("test2", "test2value");
	out.print(pageContext.getAttribute("test1") + "<br/>");
	out.print(pageContext.getAttribute("test2") + "<br/>");
	pageContext.removeAttribute("test2");
	out.print(pageContext.getAttribute("test1") + "<br/>");
	out.print(pageContext.getAttribute("test2") + "<br/>");
	
	//exception
	//Integer.parseInt("this is a number?"); 	
 %>
</body>
</html>